<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>导师专栏 - {$memberDetail.nickname}的烘焙圈</title>
    <link rel="stylesheet" href="__CSS__/global.css" />
    <link rel="stylesheet" href="__CSS__/huiyuan.css" />
    <link rel="stylesheet" href="__CSS__/teach.css" />
    <Admintemplate file="Home/Public/global_js"/>
    <script src="__JS__/jquery-1.7.2.min.js"></script>
    <script>
    var SiteUrl = "__WEBURL__";
    </script>
</head>

<body>

<div class="b-page">
    <include file="Public:header" />

    <a href="{$midad.linkurl}" class="b-banner_big" style="background-image: url(__FILESURL__{$midad.image});">{$midad.title}</a>
    <div class="b-huiyuan">
        <div class="b-body l-center">
            <div class="b-huiyuan__top">
                <div class="b-userInfo l-mgb20">
                    <div class="b-userInfo__pic"><img src="{$memberDetail.uavatar|getUavatar}" class="l-full"></div>
                    <div class="b-userInfo__content">
                        <div class="b-userInfo__name">{$memberDetail.nickname}的烘焙圈
                            <if condition="$memberDetail.ifrz eq 1">
                                <a href="__WEBURL__/us/renzhen.html"><i class="b-renzhengIcon_big pic_mid"></i></a>
                            </if>
                        </div>
                        <div class="b-userInfo__ziliao">
                            <span>性别: {$memberDetail.usex|getUsex}</span>
                            <if condition="$memberDetail.uprovince neq ''">
                            <span><img src="__IMAGES__/icon_position.png" class="pic_mid">{$memberDetail.uprovince|showProvince},{$memberDetail.ucity|showCity}</span>
                            </if>
                            <span>{$memberDetail.create_time|date='Y-m-d',###} 加入</span>
                        </div>
                        <div class="b-userInfo__shejiao">
                            <a href="{$memberDetail.uweibo}" class="b-zuopinUser__shejiaoItem" style="margin-right:5px;">
                                <span>新浪微博</span>
                                <i class="b-shareIcon pic_mid"></i>
                            </a>
                            <a href="{$memberDetail.uqqzone}" class="b-zuopinUser__shejiaoItem">
                                <span>QQ空间</span>
                                <i class="b-qqzoneIcon pic_mid"></i>
                            </a>
                        </div>
                        <div class="b-userInfo__qianming">
                            <span class="jianduan act">{$memberDetail.usign|str_cut=50}</span>
                            <if condition="strlen($memberDetail['usign'],'utf-8') gt 50">
                            <span class="quanbu">{$memberDetail.usign}</span>
                            <span rel="open" class="btn">(全部)</span>
                            </if>
                        </div>
                    </div>
                    <if condition="$userid neq $memberDetail['userid']">
                        <if condition="$isfans gt 0">
                            <a class="b-userInfo__guanzhu R_ajax_trip" data-info="userid,{$memberDetail.userid}" data-url="do/cancelfans/">取消关注</a>
                            <else/>
                            <a class="b-userInfo__guanzhu R_ajax_trip" data-info="userid,{$memberDetail.userid}" data-url="do/addfans/">关注</a>
                        </if>
                    </if>

                    <div class="b-userInfo__guanzhuInfo">
                        <div class="b-userInfo__guanzhuLeft">
                            <p class="b-userInfo__guanzhuP1">关注的人</p>
                            <p class="b-userInfo__guanzhuP2"><a href="__WEBURL__/u/{$memberDetail.openuid}/attention">{$memberDetail.attentionnum|getNullNum}</a></p>
                        </div>
                        <div class="b-userInfo__guanzhuRight">
                            <p class="b-userInfo__guanzhuP1">被关注</p>
                            <p class="b-userInfo__guanzhuP2"><a href="__WEBURL__/u/{$memberDetail.openuid}/fans">{$memberDetail.fansnum|getNullNum}</a></p>
                        </div>
                    </div>
                </div>
                <div class="b-userTab l-mgb20">
                    <a href="__WEBURL__/u/{$openuid}" class="b-userTab__item"><p><span>概况</span></p></a>
                    <a href="__WEBURL__/u/{$openuid}/works" class="b-userTab__item"><p><span>烘焙作品</span></p></a>
                    <a href="__WEBURL__/u/{$openuid}/copy" class="b-userTab__item"><p><span>参考作品</span></p></a>
                    <a href="__WEBURL__/u/{$openuid}/suipai" class="b-userTab__item"><p><span>随拍作品</span></p></a>
                    <a href="__WEBURL__/u/{$openuid}/favorite" class="b-userTab__item"><p><span>收藏</span></p></a>
                    <a href="__WEBURL__/u/{$openuid}/message" class="b-userTab__item"><p><span>留言板</span></p></a>
                    <if condition="$memberDetail.ifds eq 1">
                    <a href="__WEBURL__/u/{$openuid}/teach" class="b-userTab__item act"><p><span>导师专栏</span></p></a>
                    </if>
                </div>
            </div>
            <div class="b-huiyuan__body yf-ucenter__body">
                <div class="yf-ucenter__one">
                    <div class="yf-ucenter__nav">
                        <a href="__WEBURL__/u/{$openuid}/teach?type=1" class="yf-ucenter__href <if condition="$type eq 1">yf-ucenter__act</if>">作品文章({$zuopin})</a>
                        <a href="__WEBURL__/u/{$openuid}/teach?type=2" class="yf-ucenter__href <if condition="$type eq 2">yf-ucenter__act</if>">普通文章({$article})</a>
                    </div>
                    <if condition="$type eq 1">
                    <div class="yf-ucenter__list">
                        <foreach name="list" item="lt">
                        <if condition="$lt.is_sign eq 1">
                        <div class="yf-ucenter__mlist yf-list__year">
                            <div class="yf-mlist__one yf-mlist__year">
                                {$lt.year}年
                            </div>
                            <div class="yf-mlist__two">
                                <hr color="#e8e6e3">
                            </div>
                        </div>
                        </if>
                        <div class="yf-ucenter__mlist yf-list__list">
                            <div class="yf-mlist__one">
                                <div class="yf-mlist__box">
                                    <span>{$lt.month}月</span>
                                    <p>{$lt.day}</p>
                                </div>
                            </div>
                            <div class="yf-mlist__two">
                                <ul class="yf-mlist__mlist">
                                <foreach name="lt.teachlist" item="ll">
                                    <li <if condition="($key+1)%3 eq 0">class="yf-mlist__three"</if>>
                                        <div class="yf-mlist__pic2" <if condition="$ll.image eq ''">style="background-image: url('{$ll.uavatar|getUavatar}');"<else/>style="background-image: url('__WEBURL__/{$ll.image}');"</if>></div>
                                        <div class="yf-mlist__data">
                                            <a href="__WEBURL__/teach/{$ll.teachid}">{$ll.title}</a>
                                            <span>{$ll.favnum}收藏</span><span>{$ll.msgnum}评论</span>
                                        </div>
                                        <div class="yf-mlist__ed">
                                        <if condition="$is_user eq 1">
                                            <a href="__WEBURL__/teach/editteach/id/{$ll.teachid}" class="yf-mlist__edurl">编辑</a>
                                            <a class="yf-mlist__edurl yf-btn__del" data-id="{$ll.teachid}" data-uid="{$ll.userid}" data-openuid="{$openuid}" data-type="ucenter">删除</a>
                                        </if>
                                        </div>
                                    </li>
                                </foreach>
                                </ul>
                            </div>
                        </div>
                        </foreach>
                    </div>
                    </if>
                    <if condition="$type eq 2">
                    <div class="yf-ucenter__list">
                        <foreach name="list" item="ll">
                            <div class="yf-article__list">
                                <div class="yf-article__title"><a href="__WEBURL__/teach/{$ll.teachid}">{$ll.title}</a>
                                <if condition="$is_user eq 1">
                                <a class="yf-article__href yf-btn__del" data-id="{$ll.teachid}" data-uid="{$ll.userid}" data-openuid="{$openuid}" data-type="ucenter">删除</a><a class="yf-article__href" href="__WEBURL__/teach/editteach/id/{$ll.teachid}">编辑</a>
                                </if>
                                </div>
                                <p class="yf-article__desc">
                                    {$ll.desc}
                                </p>
                                <div class="yf-article__span">
                                    <span class="yf-info__view"><img src="__WEBURL__/static/home/images/icon_quanzi_view.png" class="pic_mid">浏览{$ll.viewnum}次</span><span class="yf-info__chat"><i class="b-messageIcon pic_mid"></i>{$ll.msgnum}</span>
                                    <span>{$ll.create_time|date="Y-m-d", ###}</span>
                                </div>
                            </div>
                        </foreach>
                    </div>
                    </if>
                    <div class="yf-ucenter__page">
                        <if condition="$pagecount gt 1">
                            <div class="pager">{$Page}</div>
                        </if>
                    </div>
                </div>
                <div class="yf-ucenter__two">
                    <div class="yf-ucenter__fav">
                        <div class="yf-ucenter__title">
                            {$memberDetail.nickname}关注的人<span>({$fans_count})</span>
                        </div>
                        <div class="yf-ucenter__favpic">
                        <foreach name="fans" item="fs">
                            <a href="__WEBURL__/u/{$fs.openuid}" title="{$fs.nickname}"><img src="{$fs.uavatar|getUavatar}" width="100%"></a>
                        </foreach>
                        </div>
                    </div>
                    <div class="yf-ucenter__tip">
                        被<span>{$is_fans}</span>人关注
                    </div>
                    <div class="yf-ucenter__send">
                        <div class="yf-ucenter__stitle">
                            烘焙圈达人推荐
                        </div>
                        <div class="yf-ucenter__sfav">
                        <foreach name="is_tj" item="tj">
                            <a href="__WEBURL__/u/{$tj.openuid}">
                                <img src="{$tj.uavatar|getUavatar}" width="48px">
                                <p class="yf-ucenter__sname">{$tj.nickname}</p>
                            </a>
                        </foreach>
                        </div>
                    </div>
                </div>
            </div>
            <div class="b-huiyuan__bottom">

            </div>
        </div>
    </div>

    <include file="Public:footer" />

</div>

<script src="__JS__/index.js"></script>
<script type="text/javascript" src="__JS__/teach.js"></script>
<script src="__JS__/jquery.common.js?v=20150101"></script>
<script src="__JS__/jquery.doajax.js"></script>
<script>
    $(document).ready(function(){
     
    });
</script>

</body>
</html>